/**
 * Created by leon on 2017/5/9.
 */
(function () {
    'use strict';
    angular.module('App.pages.member')
        .controller('MineMenuCtrl',MineMenuCtrl);
    function MineMenuCtrl($scope,MemberModel,AppUtils,$location) {
        var vm = this;
        // vm.memberId=memberId;
        var objParams={};
        objParams.id='A83FA905F6044E9CA30C52FDCD351794';
        MemberModel.getMemberInfo(objParams).$promise.then(function(response){
            if(response.stat == 'err') {
                AppUtils.showAlert(response.msg);
            }else{
                vm.memberInfo = response.memberInfo;
            }
        })

        $scope.jumpToUrl=function (path,type) {
            console.info($(type));
            // document.getElementById(type).value().addClass("background-color:#ccc");

            // window.location=(path);
            $location.path(path);
        }
    }
})();